// 首页(home)请求
import axios from './index';


/* 推荐页 */
export const getBannersAPI = () => axios({
    url: '/banner',
    method: 'GET'
});

// 首页推荐歌单
export const getRecommendSongCardAPI = () => axios({
    // url: '/recommend/resource',//失效临时替代
    url: '/top/playlist',
    method: "GET",
})

// 首页推荐电台
export const getRecommendProgramAPI = () => axios({
    url: '/program/recommend',
    method: "GET",
})


// 榜单
export const getToplistsAPI = () => axios({
    url: '/toplist',
    method: "GET"
});

// 歌单详情
export const getListdetailAPI = (id) => axios({
    url: `/playlist/detail?id=${id}`,
    method: 'GET'
})